package train;

public class train {
    double speed;
    public train(int speed){
        this.speed=speed;
    }
    public double getSpeed(int speed) {
        return 2 * speed;
    }
    public void showAll() {
        System.out.println("铁路" + this.speed);
        System.out.println("高铁" + this.speed * 2);
    }
}
